<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      * {
        margin: 0;
        padding: 0;
      }
      .big {
        width: 700px;
        height: 300px;
        margin: 0 auto;
        display: flex;
        justify-content: space-between;
        align-items: center;
      }
      .box1 {
        width: 100px;
        height: 20px;
        position: relative;
        overflow: hidden;
        background-color: gray;
      }
      .son1 {
        width: 100px;
        height: 20px;
        background-color: black;
        position: absolute;
        animation: first 3s infinite;
      }
      @keyframes first {
        from {
          top: 0;
          left: -100px;
        }
        to {
          top: 0;
          left: 0px;
        }
      }

      .box2 {
        width: 100px;
        height: 20px;
        border-radius: 10px;
        background: linear-gradient(to right,#e6657b,skyblue) 0/0% no-repeat;
        animation: box2 2s infinite;
      }
      @keyframes box2{
        100%{
          background-size: 100%;
        }
      }
      /* .son2 {
        width: 100px;
        height: 20px;
        background-color: orange;
        position: absolute;
        animation: scoend 2s infinite;
      }

      
      @keyframes scoend {
        from {
          top: 0;
          left: -100px;
        }
        20%{
            top: 0px;
            left: -80px;
        }
        40%{
            top: 0px;
            left: -60px;
        }
        60%{
            top: 0px;
            left: -40px;
        }
        80%{
            top: 0px;
            left: -20px;
        }
        to {
          top: 0;
          left: 0px;
        }
      } */

      
      .box3 {
        width: 130px;
        height: 20px;
        background-color: gray;
        position: relative;
        overflow: hidden;
      }
      .son8{
        width: 135px;
        height: 20px;
        background-color: black;
        animation: three 3s infinite steps(7);
      }

      @keyframes three{
        from {
          top: 0;
          left: -135px;
        }
        to {
          top: 0;
          left: 0px;
        }
      }
      .son3,.son4,.son5,.son6,.son7{
        width: 5px;
        height: 20px;
        background-color: white;
        z-index: 999;
      }
      .son9{
        width: 20px;
        height: 20px;
        background-color: white;
        z-index: 999;
      }
      .son3{
        position: absolute;
        top: 0;
        left: 15px;
      }
      .son4{
        position: absolute;
        top: 0;
        left: 35px;
      }
      .son5{
        position: absolute;
        top: 0;
        left: 55px;
      }
      .son6{
        position: absolute;
        top: 0;
        left: 75px;
      }
      .son7{
        position: absolute;
        top: 0;
        left: 95px;
      }
      .son8{
        position: absolute;
        top: 0;
        left: 135px;
      }
      .son9{
        position: absolute;
        top: 0;
        left: 115px;
      }
      

      .box4{
        width: 120px;
        height: 20px;
        border-radius: 10px;
        background: repeating-linear-gradient(45deg,#f03355 0 10px,orange 0 20px) 0/0% no-repeat,repeating-linear-gradient(45deg,#ddd 0 10px,#eee 0 20px)0/100% no-repeat;
        animation: box4 2s infinite;
      }
      @keyframes box4{
        100%{
          background-size: 100%;
        }
      }
    </style>
  </head>
  <body>
    <div class="big">

      <div class="box1">
        <div class="son1"></div>
      </div>

      <div class="box2">
        <!-- <div class="son2"></div> -->
      </div>

      <div class="box3">
        <div class="son3"></div>
        <div class="son4"></div>
        <div class="son5"></div>
        <div class="son6"></div>
        <div class="son7"></div>
        <div class="son8"></div>
        <div class="son9"></div>
      </div>

      <div class="box4"></div>
    </div>
  </body>
</html>
